Optimal. Leaf size=86 \[ -\frac{2 (b B-A c) \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b \sqrt{c} \sqrt{c d-b e}}-\frac{2 A \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b \sqrt{d}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.180074, antiderivative size = 86, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {826, 1166, 208} \[ -\frac{2 (b B-A c) \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b \sqrt{c} \sqrt{c d-b e}}-\frac{2 A \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b \sqrt{d}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 826
Rule 1166
Rule 208
Rubi steps
\begin{align*} \int \frac{A+B x}{\sqrt{d+e x} \left (b x+c x^2\right )} \, dx &=2 \operatorname{Subst}\left (\int \frac{-B d+A e+B x^2}{c d^2-b d e+(-2 c d+b e) x^2+c x^4} \, dx,x,\sqrt{d+e x}\right )\\ &=\frac{(2 A c) \operatorname{Subst}\left (\int \frac{1}{-\frac{b e}{2}+\frac{1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt{d+e x}\right )}{b}+\left (2 \left (\frac{B}{2}-\frac{2 c (-B d+A e)-B (-2 c d+b e)}{2 b e}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{b e}{2}+\frac{1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt{d+e x}\right )\\ &=-\frac{2 A \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b \sqrt{d}}-\frac{2 (b B-A c) \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b \sqrt{c} \sqrt{c d-b e}}\\ \end{align*}
Mathematica [A] time = 0.156371, size = 84, normalized size = 0.98 \[ \frac{2 \left (\frac{(A c-b B) \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{\sqrt{c} \sqrt{c d-b e}}-\frac{A \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{\sqrt{d}}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 101, normalized size = 1.2 \begin{align*} -2\,{\frac{A}{b\sqrt{d}}{\it Artanh} \left ({\frac{\sqrt{ex+d}}{\sqrt{d}}} \right ) }-2\,{\frac{Ac}{b\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{\sqrt{ex+d}c}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }+2\,{\frac{B}{\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{\sqrt{ex+d}c}{\sqrt{ \left ( be-cd \right ) c}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.07095, size = 1085, normalized size = 12.62 \begin{align*} \left [-\frac{\sqrt{c^{2} d - b c e}{\left (B b - A c\right )} d \log \left (\frac{c e x + 2 \, c d - b e + 2 \, \sqrt{c^{2} d - b c e} \sqrt{e x + d}}{c x + b}\right ) -{\left (A c^{2} d - A b c e\right )} \sqrt{d} \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right )}{b c^{2} d^{2} - b^{2} c d e}, \frac{2 \, \sqrt{-c^{2} d + b c e}{\left (B b - A c\right )} d \arctan \left (\frac{\sqrt{-c^{2} d + b c e} \sqrt{e x + d}}{c e x + c d}\right ) +{\left (A c^{2} d - A b c e\right )} \sqrt{d} \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right )}{b c^{2} d^{2} - b^{2} c d e}, -\frac{\sqrt{c^{2} d - b c e}{\left (B b - A c\right )} d \log \left (\frac{c e x + 2 \, c d - b e + 2 \, \sqrt{c^{2} d - b c e} \sqrt{e x + d}}{c x + b}\right ) - 2 \,{\left (A c^{2} d - A b c e\right )} \sqrt{-d} \arctan \left (\frac{\sqrt{e x + d} \sqrt{-d}}{d}\right )}{b c^{2} d^{2} - b^{2} c d e}, \frac{2 \,{\left (\sqrt{-c^{2} d + b c e}{\left (B b - A c\right )} d \arctan \left (\frac{\sqrt{-c^{2} d + b c e} \sqrt{e x + d}}{c e x + c d}\right ) +{\left (A c^{2} d - A b c e\right )} \sqrt{-d} \arctan \left (\frac{\sqrt{e x + d} \sqrt{-d}}{d}\right )\right )}}{b c^{2} d^{2} - b^{2} c d e}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 33.2428, size = 87, normalized size = 1.01 \begin{align*} \frac{2 A \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{d}} \sqrt{d + e x}} \right )}}{b d \sqrt{- \frac{1}{d}}} - \frac{2 \left (- A c + B b\right ) \operatorname{atan}{\left (\frac{1}{\sqrt{\frac{c}{b e - c d}} \sqrt{d + e x}} \right )}}{b \sqrt{\frac{c}{b e - c d}} \left (b e - c d\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30507, size = 107, normalized size = 1.24 \begin{align*} \frac{2 \,{\left (B b - A c\right )} \arctan \left (\frac{\sqrt{x e + d} c}{\sqrt{-c^{2} d + b c e}}\right )}{\sqrt{-c^{2} d + b c e} b} + \frac{2 \, A \arctan \left (\frac{\sqrt{x e + d}}{\sqrt{-d}}\right )}{b \sqrt{-d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]